package com.crm.api.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 业务实体类
 */
@Data
public class Business implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 业务ID
     */
    private Integer id;

    /**
     * 业务编号
     */
    private String businessCode;

    /**
     * 业务名称
     */
    private String businessName;

    /**
     * 客户ID
     */
    private Integer customerId;

    /**
     * 业务类型ID
     */
    private Integer businessTypeId;

    /**
     * 负责员工ID
     */
    private Integer responsibleEmployeeId;

    /**
     * 业务状态
     */
    private String businessStatus;

    /**
     * 业务金额
     */
    private BigDecimal businessAmount;

    /**
     * 开始日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startDate;

    /**
     * 结束日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endDate;

    /**
     * 优先级
     */
    private String priority;

    /**
     * 业务描述
     */
    private String description;

    /**
     * 进度备注
     */
    private String progressNotes;

    /**
     * 创建人ID
     */
    private Integer createdBy;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 更新时间
     */
    private Date updatedAt;
}